<template>
  <div>
    <h2>{{ msg }}</h2>
    <p>新闻ID：{{ $route.params.newsId }}</p>
    <p>新闻标题：{{ $route.params.newsTitle }}</p>
  </div>
</template>

<script>
    export default {
        name: "params",
      data(){
          return {
            msg : '我是传递参数的页面'
          }
      }
    }
</script>

<style scoped>

</style>
